//导入工具类
import request from "@/utils/request";

//查询所有企业地址
export const getAllSkill = (PageNum,PageSize) =>{
    let page = {
        PageNum:PageNum,
        PageSize:PageSize
    }
    return request.get("/postskill/selectSkill",page);
}
//查询所有企业地址
export const addSkill = (data) =>{
    let skill = {
        "skillId": data.skillId,
        "skillName": data.skillName,
        "tip": "0"
    }
    console.log(data);
    return request.post("/skill",skill);
}

//根据模糊分页查询
export const getSkillBykeyWordPage = (pageNum,pageSize,keyword) =>{
    let data = {
        pageNum:pageNum,
        pageSize:pageSize,
        keyword:keyword
    }
    return request.get(`/skill/page`,data);
}

//根据id查询用户
export const getSkillId = (skillId) =>{
    return request.get(`/skill/${skillId}`);
}

//查询总页数
export const getAllPage = () =>{
    return request.get("/skill");
}

//删除企业地址
export const deleSkill = (id) =>{
    return request.get(`/skill/del?id=${id}`);
}
